<?php
date_default_timezone_set("PRC");

session_start();
if (empty($_SESSION['admin_email'])) {
    echo '尚未登录，请先登录 <a href="index.php?c=login">登录</a>';
    exit();
}

//$dsn = "mysql:host=127.0.0.1;dbname=blog";
//$db = new PDO($dsn, "root", "123456");
//
//$sql = "SELECT * FROM category order by category_id desc";
//$result = $db->query($sql);
//$categoryList = $result->fetchAll(PDO::FETCH_ASSOC);

include APP_PATH . "./view/admin_add.php";


